<!DOCTYPE html>
<html lang="en">
<head>
    <{include file="header.html"}>
    <title>网校管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
    <!--star left-->
    <div class="column">
        <{include file="left_menu.html"}>
    </div>
    <div id="ContMianBox">
        <!--star子栏目-->
            <{include file="left_menu_min.html"}>
        <!--end子栏目-->
        <!--end left-->
        <div class="container narrow">
            <!--star conter-->
            <div class="cetContent">
                <div class="tit p-lr20">
                    <span><a href="/school">导航设置</a></span>
                    <!-- <span><a href="/school/info">基本资料</a></span> -->
                    <span><a href="/school/modulars">首页模块设置</a></span>
                    <span><a href="/advertising">网校Banner</a></span>
                    <span class="curr"><a href="/school_page">网校页面</a></span>
                    <span><a href="/school/wx_pay_config">微信支付设置</a></span>
                </div>
                <!--star内容区域-->
                <div class="mainScroll">
                    <div class="mainContainer line-all">
                        <!--star tabMainCont-->
                        <div class="tabMainCont">
                            <!--star会员管理-->
                            <fieldset class="layui-elem-field">
                                <legend>按条件搜索</legend>
                                <div class="layui-field-box">
                                    <form class="layui-form layui-form-pane1" method="post" action="<{$current_url}>">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <input type="text" name="search" placeholder="页面名称" value="<{if $data['search']}><{$data['search']}><{/if}>" class="layui-input">
                                            </div>
                                            <div class="layui-inline">
                                                <button type="submit" class="layui-btn">搜索</button>
                                                <a class="layui-btn" href="/school_page/add"><i class="layui-icon"></i> 添加页面</a>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </fieldset>
                            <form class="layui-form layui-form-pane1" method="post" delete_action="/school_page/delete">
                                <table class="layui-table" lay-even lay-skin="row">
                                    <thead>
                                        <tr>
                                            <th>ID</th>
                                            <th>页面名称</th>
                                            <th>页面描述</th>
                                            <th>是否启用</th>
                                            <th>是否显示到导航</th>
                                            <th>添加日期</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <{foreach from=$list item=item}>
                                        <tr>
                                            <td class="center">
                                                <label class="checkbox inline">
                                                    <input type="checkbox" name="ids[]" value="<{$item['id']}>"> <{$item['id']}>
                                                </label>
                                            </td>
                                            <td class="center"><{$item['page_title']}></td>
                                            <td class="center"><{$item['page_intro']}></td>
                                            <td class="center">
                                            <{if $item['status'] == 1}>
                                            是
                                            <{else}>
                                            否
                                            <{/if}>
                                            </td>
                                            <td class="center">
                                                <{if $item['show_menu'] == 1}>
                                                是
                                                <{else}>
                                                否
                                                <{/if}>
                                            </td>
                                            <td class="center"><{$item['add_time']|date_format:'%Y-%m-%d %H:%M:%S'}></td>
                                            <td class="center">
                                                <a class="layui-btn layui-btn-primary layui-btn-small" href="/school_page/edit/<{$item['id']}>" target="_blank"><i class="layui-icon"></i></a>
                                                <a class="layui-btn layui-btn-primary layui-btn-small delete_data" href="/school_page/delete/<{$item['id']}>"><i class="layui-icon"></i></a>
                                            </td>
                                        </tr>
                                    <{/foreach}>
                                    <{if $list|count eq 0}>
                                        <tr>
                                            <td class="center" style=" height:120px; text-align:center;line-height:120px;" colspan="7">
                                                赞无数据！
                                            </td>
                                        </tr>
                                    <{/if}>
                                    <tr>
                                        <td class="center" colspan="7">
                                            <input type="checkbox" lay-filter="checkbox_all" title="全选">
                                            <button id="delete" class="layui-btn layui-btn-primary layui-btn-small" style="margin-top:4px;"><i class="layui-icon"></i> 批量删除</button>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>    
                            </form>

                            <div class="pages p-tb20" style="text-align:right;">
                                <{$pagination}>
                            </div>

                        </div>
                        <!--star会员管理-->
                    </div>
                        <!--end tabMainCont-->
                </div>

            </div>
        </div>

    </div>
</div>
<{include file="footer.html"}>
</body>
</html>